<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<style>
#header {
	background: #73a0c5 url('<?=get_option('header_image')?>') no-repeat bottom center;
}
</style>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>

<?php wp_head(); ?>
</head>
<body>
<div id='bodyFull'>

	<div id='bodyHd'>
		<div id="shadowContainer">
			<div id="shadowHd">
				<div id="header">
					<a href="<?php echo get_option('home'); ?>/">
					<div id="headerimg">
						<!--
						<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
						<div class="description"><?php bloginfo('description'); ?></div>
						-->
					</div>
					</a>
					<?	
					$post = get_post($wp_query->get_queried_object_id());

					$pages = get_pages(array('sort_column' => 'menu_order'));
					?>
					<div id="headernav">
						<div class='navcontent'>
							<?foreach($pages as $page) if ( $page->post_parent == 0 ) {
								$selected = ( $wp_query->get_queried_object_id() == $page->ID || $post->post_parent == $page->ID);
								?>
								<a href="<?=get_page_link($page->ID)?>" class="<?=$page->post_name?> <?=(($selected)?"on":"")?>"><?=$page->post_title?></a>
								<?}?>
							</div>
						</div>
						<?
						$subpages = get_pages(array('child_of' => $post->post_parent ? $post->post_parent : $wp_query->get_queried_object_id(), 'sort_column' => 'menu_order'));
						if ($wp_query->is_page && count($subpages)) {
							$_SESSION['is_subnav'] = true;
							?>
							<div id="headersubnav">
								<div style='clear:both'></div>
								<div class='navcontent'>
									<?foreach($subpages as $subpage) {
										$selected = ( $wp_query->get_queried_object_id() == $subpage->ID || ( $post->post_parent == 0 && $subpage->menu_order == 1 ) );
										?>
										<a href="<?=get_page_link($subpage->ID)?>" class='<?=$subpage->post_name?> <?=(($selected)?"on":"")?>'><?=$subpage->post_title?></a>
										<?
									}
									?>
								</div>
							</div>
							<?
						} else {
							$_SESSION['is_subnav'] = false;
						}
						?>
					</div>
				</div><!-- shadowHd -->
				<div id='shadowBg'>
					<div id='page' style='background:none;'>
